package aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.Signature;

public class LoggingAdvice {

	// Common functionality implementation that all business logics will have
	// This will receive joinPoint object which has method, target, argument information from Spring.
	// In other words, retrieving and using after argument declaration is enough.
	public void logging(JoinPoint joinPoint) {
		Signature method = joinPoint.getSignature();
		
		String methodName = method.getName();
		System.out.println("methodName : " + methodName);
	}
}
